package pw.goyd.game.logic;

import pw.goyd.protocol.core.Serializer;

/**
 * 安全验证 接收版本信息
 *
 * @author StanWind
 */
public class SecureRequest extends Serializer {
    private String clientVersion;

    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }

    @Override
    protected void read() {
        setClientVersion(readString());
    }

    @Override
    protected void write() {
        writeString(getClientVersion());
    }

}
